﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ConfigSendMail.ascx.cs" Inherits="NLLSite.Administrator.UserControl.ConfigSendMail" %>

   

<style type="text/css">
    .style1
    {
        width: 114px;
        text-align: right;
    }
    .style2
    {
        text-align: right;
        width: 345px;
    }
</style>

   

<div class="box box-100">
    <div class="boxin">
        <div class="header">
            <h3>
                Cấu hình gửi mail</h3>
        </div>
        <div style="padding: 18px;">
            <!--<form class="basic" action="" method="post" enctype="multipart/form-data"><!-- Default basic forms -->
            <div class="inner-form">
                ::::<asp:Label ID="lblHint" runat="server" Font-Bold="True" ForeColor="#CC0000" ></asp:Label>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        &nbsp;
                        Mail Gửi</td>
                    <td class="style2">
                        <asp:TextBox ID="txtMailFrom" runat="server" Width="300px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtMailFrom" ErrorMessage="Email không hợp lệ" 
                            ValidationExpression="^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Password</td>
                    <td class="style2">
                        <asp:TextBox ID="txtPassword" runat="server" Width="300px" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtPassword" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Mail Nhận</td>
                    <td class="style2">
                        <asp:TextBox ID="txtMailTo" runat="server" Width="300px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="txtMailTo" ErrorMessage="Email không hợp lệ" 
                            ValidationExpression="^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Smtp Client</td>
                    <td class="style2">
                        <asp:TextBox ID="txtSmtpClient" runat="server" Width="300px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="txtSmtpClient" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Smtp Host</td>
                    <td class="style2">
                        <asp:TextBox ID="txtSmtpHost" runat="server" Width="300px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="txtSmtpHost" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Smtp Port</td>
                    <td class="style2">
                        <asp:TextBox ID="txtSmtpPort" runat="server" Width="85px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ControlToValidate="txtSmtpPort" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;</td>
                    <td class="style2">
                        <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" 
                            Text="Lưu lại" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
 </div>
        </div>
    </div>
</div>
   
